package top.tervest.easyshare.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.tervest.easyshare.domain.entity.User;
import top.tervest.easyshare.domain.entity.UserAuthInfo;

import java.util.List;

/**
 * 登陆相关dao
 * @author ZhangNanNan
 * @create 2019-07-17 11:13
 */
@Mapper
public interface UserDao {

    /**
     * 获取用户认证信息
     * @param username
     * @return
     */
    UserAuthInfo getAuthUserInfo(@Param("username") String username);

    /**
     * 获取用户角色
     * @param username
     * @return
     */
    List<String> listRole(@Param("username") String username);

    /**
     * 获取用户信息
     * @param username
     * @return
     */
    User getUser(@Param("username") String username);


}
